package pers.wensheng.patterns.creator_pattern.factory_pattern.factory_method_pattern.factory;

import pers.wensheng.patterns.creator_pattern.factory_pattern.factory_method_pattern.entity.Coffee;
import pers.wensheng.patterns.creator_pattern.factory_pattern.factory_method_pattern.entity.AmericanCoffee;

/**
 *  美式咖啡工厂对象，专门用来生产美式咖啡的
 */
public class AmericanCoffeeFactory implements CoffeeFactory {
    /**
     * 创建咖啡对象的方法
     *
     * @return
     */
    @Override
    public Coffee createCoffee() {
        return new AmericanCoffee();
    }
}
